Integrand size = 21, antiderivative size = 51 \[ \int \frac {\cos (c+d x)}{\sqrt {3+4 \cos (c+d x)}} \, dx=\frac {\sqrt {7} E\left (\frac {1}{2} (c+d x)|\frac {8}{7}\right )}{2 d}-\frac {3 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {8}{7}\right )}{2 \sqrt {7} d} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2831, 2740, 2732} \[ \int \frac {\cos (c+d x)}{\sqrt {3+4 \cos (c+d x)}} \, dx=\frac {\sqrt {7} E\left (\frac {1}{2} (c+d x)|\frac {8}{7}\right )}{2 d}-\frac {3 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {8}{7}\right )}{2 \sqrt {7} d} \]
[In]
[Out]
Rule 2732
Rule 2740
Rule 2831
Rubi steps \begin{align*} \text {integral}& = \frac {1}{4} \int \sqrt {3+4 \cos (c+d x)} \, dx-\frac {3}{4} \int \frac {1}{\sqrt {3+4 \cos (c+d x)}} \, dx \\ & = \frac {\sqrt {7} E\left (\frac {1}{2} (c+d x)|\frac {8}{7}\right )}{2 d}-\frac {3 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {8}{7}\right )}{2 \sqrt {7} d} \\ \end{align*}
Time = 0.10 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.84 \[ \int \frac {\cos (c+d x)}{\sqrt {3+4 \cos (c+d x)}} \, dx=\frac {7 E\left (\frac {1}{2} (c+d x)|\frac {8}{7}\right )-3 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {8}{7}\right )}{2 \sqrt {7} d} \]
[In]
[Out]
Time = 2.29 (sec) , antiderivative size = 155, normalized size of antiderivative = 3.04
method | result | size |
default | \(\frac {\sqrt {\left (8 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {1-8 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (3 F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), 2 \sqrt {2}\right )+E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), 2 \sqrt {2}\right )\right )}{2 \sqrt {-8 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+7 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {8 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d}\) | \(155\) |
risch | \(-\frac {i \left (2 \,{\mathrm e}^{2 i \left (d x +c \right )}+3 \,{\mathrm e}^{i \left (d x +c \right )}+2\right ) {\mathrm e}^{-i \left (d x +c \right )}}{2 d \sqrt {\left (2 \,{\mathrm e}^{2 i \left (d x +c \right )}+3 \,{\mathrm e}^{i \left (d x +c \right )}+2\right ) {\mathrm e}^{-i \left (d x +c \right )}}}-\frac {i \left (-\frac {2 \,{\mathrm e}^{2 i \left (d x +c \right )}+3 \,{\mathrm e}^{i \left (d x +c \right )}+2}{\sqrt {\left (2 \,{\mathrm e}^{2 i \left (d x +c \right )}+3 \,{\mathrm e}^{i \left (d x +c \right )}+2\right ) {\mathrm e}^{i \left (d x +c \right )}}}+\frac {2 \left (\frac {3}{4}+\frac {i \sqrt {7}}{4}\right ) \sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}+\frac {3}{4}+\frac {i \sqrt {7}}{4}}{\frac {3}{4}+\frac {i \sqrt {7}}{4}}}\, \sqrt {14}\, \sqrt {i \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {3}{4}-\frac {i \sqrt {7}}{4}\right ) \sqrt {7}}\, \sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}}{-\frac {3}{4}-\frac {i \sqrt {7}}{4}}}\, \left (-\frac {i \sqrt {7}\, E\left (\sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}+\frac {3}{4}+\frac {i \sqrt {7}}{4}}{\frac {3}{4}+\frac {i \sqrt {7}}{4}}}, \frac {\sqrt {14}\, \sqrt {i \left (-\frac {3}{4}-\frac {i \sqrt {7}}{4}\right ) \sqrt {7}}}{7}\right )}{2}+\left (-\frac {3}{4}+\frac {i \sqrt {7}}{4}\right ) F\left (\sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}+\frac {3}{4}+\frac {i \sqrt {7}}{4}}{\frac {3}{4}+\frac {i \sqrt {7}}{4}}}, \frac {\sqrt {14}\, \sqrt {i \left (-\frac {3}{4}-\frac {i \sqrt {7}}{4}\right ) \sqrt {7}}}{7}\right )\right )}{7 \sqrt {2 \,{\mathrm e}^{3 i \left (d x +c \right )}+3 \,{\mathrm e}^{2 i \left (d x +c \right )}+2 \,{\mathrm e}^{i \left (d x +c \right )}}}\right ) \sqrt {\left (2 \,{\mathrm e}^{2 i \left (d x +c \right )}+3 \,{\mathrm e}^{i \left (d x +c \right )}+2\right ) {\mathrm e}^{i \left (d x +c \right )}}\, {\mathrm e}^{-i \left (d x +c \right )}}{d \sqrt {\left (2 \,{\mathrm e}^{2 i \left (d x +c \right )}+3 \,{\mathrm e}^{i \left (d x +c \right )}+2\right ) {\mathrm e}^{-i \left (d x +c \right )}}}\) | \(497\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 108, normalized size of antiderivative = 2.12 \[ \int \frac {\cos (c+d x)}{\sqrt {3+4 \cos (c+d x)}} \, dx=\frac {i \, \sqrt {2} {\rm weierstrassPInverse}\left (-1, 1, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right ) + \frac {1}{2}\right ) - i \, \sqrt {2} {\rm weierstrassPInverse}\left (-1, 1, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right ) + \frac {1}{2}\right ) + 2 i \, \sqrt {2} {\rm weierstrassZeta}\left (-1, 1, {\rm weierstrassPInverse}\left (-1, 1, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right ) + \frac {1}{2}\right )\right ) - 2 i \, \sqrt {2} {\rm weierstrassZeta}\left (-1, 1, {\rm weierstrassPInverse}\left (-1, 1, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right ) + \frac {1}{2}\right )\right )}{4 \, d} \]
[In]
[Out]
\[ \int \frac {\cos (c+d x)}{\sqrt {3+4 \cos (c+d x)}} \, dx=\int \frac {\cos {\left (c + d x \right )}}{\sqrt {4 \cos {\left (c + d x \right )} + 3}}\, dx \]
[In]
[Out]
\[ \int \frac {\cos (c+d x)}{\sqrt {3+4 \cos (c+d x)}} \, dx=\int { \frac {\cos \left (d x + c\right )}{\sqrt {4 \, \cos \left (d x + c\right ) + 3}} \,d x } \]
[In]
[Out]
\[ \int \frac {\cos (c+d x)}{\sqrt {3+4 \cos (c+d x)}} \, dx=\int { \frac {\cos \left (d x + c\right )}{\sqrt {4 \, \cos \left (d x + c\right ) + 3}} \,d x } \]
[In]
[Out]
Time = 14.50 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.06 \[ \int \frac {\cos (c+d x)}{\sqrt {3+4 \cos (c+d x)}} \, dx=\frac {\sqrt {\frac {4\,\cos \left (c+d\,x\right )}{7}+\frac {3}{7}}\,\left (7\,\mathrm {E}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |\frac {8}{7}\right )-3\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |\frac {8}{7}\right )\right )}{2\,d\,\sqrt {4\,\cos \left (c+d\,x\right )+3}} \]
[In]
[Out]